#ifndef __CANNON_H__
#define __CANNON_H__
#include "cocos2d.h"

enum CannonType
{
	k_Cannon_Type_1 = 0,
	k_Cannon_Type_2,
	k_Cannon_Type_Count,
	k_Cannon_Type_Invalid
};

class Cannon : public cocos2d::CCNode
{
public:
	Cannon();
	virtual ~Cannon();
	static Cannon* create(CannonType type=k_Cannon_Type_1);
	bool init(CannonType type=k_Cannon_Type_1);
	cocos2d::CCSprite* getCurCannonSprite();
	CannonType getType() { return _type; }
	void setType(CannonType type);
	void aimAt(cocos2d::CCPoint target);
private:
	cocos2d::CCArray* _canonSprites;
	CannonType _type;
};

#endif